#ifndef MONSTER_SERVER_H
#define MONSTER_SERVER_H

#include <Box2D/Box2D.h>
#include <SFML/Network.hpp>

#include "ContactObject.h"
#include "DirectionPosition.h"

class MonsterServer : public ContactObject {
public :
	/*Variables pour Box2D*/
	b2BodyDef monsterBodyDef;
	b2Vec2 monsterPosition;
	b2PolygonShape dynamicBox; 
	b2Vec2 vel;
	b2Body* body;

	characterDirection monsterDirection;
	float monsterWidth;
	float monsterHeight;

	MonsterServer(float posX, float posY);
	void initialiseB2D(b2World* world);
	void send(sf::TcpSocket& socket);
	
	virtual void startContact();
	virtual void endContact();
};


#endif